#include <iostream>
#include <stdlib.h>
using namespace std;



class Box{
    private:
        int x;
    public:
        Box(int x){
            this -> x = x;
        }
        int getX(){
            return this -> x;
        }
        void setX(int x){
            this -> x = x;
        }
};

int main()
{
    Box a(10);
    cout << a.getX() << endl;
    a.setX(20);
    cout << a.getX() << endl;
    system("pause");
    return 0;
}